package com.iss.card.view.model;

import android.util.Log;

import com.iss.card.R.string;
import com.iss.card.webservice.BaseModel;

public class CardDetailReturnOrderModel extends BaseModel{
	

	/**
	 * 
	 * 05-22 11:11:22.685: D/kitexy debug(1037): history tempString ===> orderID
05-22 11:11:22.685: D/kitexy debug(1037): history valueString ===> 35
05-22 11:11:22.695: D/kitexy debug(1037): history tempString ===> orderNo
05-22 11:11:22.695: D/kitexy debug(1037): history valueString ===> R20130520114453ewaj3
05-22 11:11:22.695: D/kitexy debug(1037): history tempString ===> orderDate
05-22 11:11:22.695: D/kitexy debug(1037): history valueString ===> 2013-05-20 11:32:46
05-22 11:11:22.705: D/kitexy debug(1037): history tempString ===> returnStoreName
05-22 11:11:22.705: D/kitexy debug(1037): history valueString ===> 哥伦布广场店
05-22 11:11:22.705: D/kitexy debug(1037): history tempString ===> returner
05-22 11:11:22.705: D/kitexy debug(1037): history valueString ===> test
05-22 11:11:22.705: D/kitexy debug(1037): history tempString ===> returnNumber
05-22 11:11:22.705: D/kitexy debug(1037): history valueString ===> 1
05-22 11:11:22.705: D/kitexy debug(1037): history tempString ===> returnAmount
05-22 11:11:22.716: D/kitexy debug(1037): history valueString ===> 0.00
05-22 11:11:22.716: D/kitexy debug(1037): history tempString ===> returnValue
05-22 11:11:22.716: D/kitexy debug(1037): history valueString ===> 300.00
05-22 11:11:22.716: D/kitexy debug(1037): history tempString ===> returnPoints
05-22 11:11:22.716: D/kitexy debug(1037): history valueString ===> 0
05-22 11:11:22.716: D/kitexy debug(1037): history tempString ===> returnCash
05-22 11:11:22.726: D/kitexy debug(1037): history valueString ===> 100.00
	 */
	
	private String orderID;
	private String orderNo;
	private String orderDate;
	
	private String returnStoreName;
	private String returner;
	private String returnNumber;
	
	private String returnAmount;
	private String returnValue;
	private String returnPoints;

	private String returnCash;

	
	private static final String ORSER_ID = "orderID";
	private static final String ORDER_NO = "orderNo";
	private static final String ORDER_DATE = "orderDate";
	private static final String RETURN_STORE_NAME = "returnStoreName";
	private static final String RETURNER = "returner";
	private static final String RETURN_NUMBER = "returnNumber";
	private static final String RETURN_AMOUNT = "returnAmount";
	private static final String RETURN_VALUE = "returnValue";
	private static final String RETURN_POINTS= "returnPoints";
	private static final String RETURN_CASH = "returnCash";
	
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		// TODO Auto-generated method stub
		Log.d("kitexy debug", "history tempString ===> " + tempString);
		Log.d("kitexy debug", "history valueString ===> " + valueString);
		
		if(tempString== ORSER_ID){
			 setOrderID(valueString);
		}else if(tempString== ORDER_NO){
			 setOrderNo(valueString);
		}else if(tempString== ORDER_DATE){
			 setOrderDate(valueString);
		}else if(tempString== RETURN_STORE_NAME){
			 setReturnStoreName(valueString);
		}else if(tempString== RETURNER){
			 setReturner(valueString);
		}else if(tempString== RETURN_AMOUNT){
			 setReturnAmount(valueString);
		}else if(tempString== RETURN_VALUE){
			 setReturnValue(valueString);
		}else if(tempString== RETURN_POINTS){
			 setReturnPoints(valueString);
		}else if(tempString== RETURN_CASH){
			 setReturnCash(valueString);
		}else if(tempString == RETURN_NUMBER){
			setReturnNumber(valueString);
		}
		
		baseMode = this;
	}
    
	public String getOrderID(){
		return orderID;
	}

	public String getOrderNo(){
		return orderNo;
	}
	public String getOrderDate(){
		return orderDate;
	}
	public String getReturnStoreName(){
		return returnStoreName;
	}
	public String getReturner(){
		return returner;
	}
	public String getReturnAmount(){
		return returnAmount;
	}
	public String getReturnValue(){
		return returnValue;
	}
	public String getReturnPoints(){
		return returnPoints;
	}
	public String getReturnCash(){
		return returnCash;
	}
	public String getReturnNumber(){
		return returnNumber;
	}
	
	
	
	public void setOrderID(String orderID){
		this.orderID = orderID;
	}

	public void setOrderNo(String orderNo){
		this.orderNo = orderNo;
	}
	public void setOrderDate(String orderDate){
		this.orderDate = orderDate;
	}
	public void setReturnStoreName(String returnStoreName){
		this.returnStoreName =returnStoreName; 
	}
	public void setReturner(String returner){
		this.returner = returner;
	}
	public void setReturnAmount(String returnAmount){
		this.returnAmount = returnAmount;
	}
	public void setReturnValue(String returnValue){
		this.returnValue = returnValue;
	}
	public void setReturnPoints(String returnPoints){
		this.returnPoints = returnPoints;
	}
	public void setReturnCash(String returnCash){
		this.returnCash = returnCash;
	}

	public void setReturnNumber(String returnNumber){
		this.returnNumber = returnNumber;
	}
}
